---
title: Radio Group
description: A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.
kobalte: https://kobalte.dev/docs/core/components/radio-group
---

<ComponentPreview name="radio-group-demo" />

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>

<TabsContent value="cli">

```bash
npx solidui-cli@latest add radio-group
```

</TabsContent>

<TabsContent value="manual">
<Steps>

<Step>Install the following dependencies: </Step>

```bash
pnpm install @kobalte/core solid-icons
```

<Step>Copy and paste the following code into your project: </Step>

<ComponentSource name="radio-group" />

</Steps>
</TabsContent>

</Tabs>

## Usage

```tsx
import { RadioGroup, RadioGroupItem, RadioGroupItemLabel } from "~/components/ui/radio-group"
```

```tsx
<RadioGroup>
  <For each={["Apple", "Orange", "Watermelon"]}>
    {(fruit) => (
      <RadioGroupItem value={fruit}>
        <RadioGroupItemLabel>{fruit}</RadioGroupItemLabel>
      </RadioGroupItem>
    )}
  </For>
</RadioGroup>
```
